// 220102 15:37

var buf1 = Buffer.from('ABC');
var buf2 = Buffer.from('ABCD');
var buf3 = Buffer.from('ABC');
var buf4 = Buffer.from('abc');
console.log('result:');
console.log(buf1.compare(buf2)); // -1 在前
console.log(buf1.compare(buf3)); // 0 相同
console.log(buf1.compare(buf4)); // 在后
